<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('logs', 'LogsController');
    $router->get('tree', 'AreasController@tree');
    $router->resource('products', 'ProductsController');
    $router->resource('areas', 'AreasController');
    $router->get('records/showType/{type}', 'RecordsController@showType');
    $router->get('records/map', 'RecordsController@map');
    $router->resource('records', 'RecordsController');
    $router->resource('warnings', 'WarningController');
});
